package com.netease.qa.biz.service;

import com.netease.qa.biz.dto.TeamDTO;

import java.util.List;

/**
 * @author zoudongdong
 * @date 2018/2/14
 */
public interface TeamService {
    //新增团队
    public void addTeam(TeamDTO team);

    //查询所有的团队
    public List<TeamDTO> getAllTeam();

    //查询用户加入的团队列表
    public List<TeamDTO> getJoinedTeamList(String userId);

    //查询下一个teamId
    public int getNextTeamId();

    //加入团队
    public void joinTeam(String joinUserId, int teamId);

    //查询加入该团队的人员list
    public List<String> getJoinedUserIdList(int teamId);

    //移出团队
    public void leaveTeam(String leaveUserId, int teamId);

    //编辑团队信息
    public void editTeam(TeamDTO team,String lastEditor);

    //查询某个团队的信息
    public TeamDTO getTeamDetail(int teamId);

    //查询所有的teamId列表
    public List<Integer> getTeamIdList();

    public void deleteTeam(int teamId,String userId);

    public boolean getTeamByName(String teamName);

    public String validateBeforeDelete(int teamId);
}
